package fr.upstlse.glre.client.vo.depot;

import com.extjs.gxt.ui.client.widget.Html;
import com.google.gwt.user.client.rpc.IsSerializable;


public class LibelleVOGWT implements IsSerializable
{
    /**
     * The serial version UID of this class. Needed for serialization.
     */
    private static final long serialVersionUID = -8904846880008491705L;

    private long id;
    private String intitule;
    
    public LibelleVOGWT()
    {
        this.id = 0;
        this.intitule = null;
    }

    public LibelleVOGWT(long id, String intitule)
    {
        this.id = id;
        this.intitule = intitule;
    }

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getIntitule() {
		return intitule;
	}

	public void setIntitule(String intitule) {
		this.intitule = intitule;
	}
	
	public Html getHtml() {
		String lIntitule = "<p>Intitulé: " + getIntitule() + "</p>";
		String lLibelle = lIntitule;
		
		Html lHTML = new Html();
		lHTML.setHtml(lLibelle);

		return lHTML;
	}
	
	public String toString() {
		String res = "";
		res += getIntitule() + "\n";
		return res;
	}
}
